package com.pony.service.impl;

import com.pony.dao.HyMapper;
import com.pony.entity.Hy;
import com.pony.service.HyService;
import com.pony.service.HyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("hyService")
public class HyServiceImpl implements HyService {
    @Autowired
    private HyMapper hyMapper;

    @Override
    public List<Hy> getAll() {
        return hyMapper.getAll();
    }

    @Override
    public int delHy(int hyid) {
        return hyMapper.delHy(hyid);
    }
}
